package com.woniuxy.mapper;

import com.woniuxy.entity.ActivityType;
import com.woniuxy.entity.ActivityTypeExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


/*
@author Jan
@create 2020-05-20 19:00

*/

public interface ActivityTypeMapper {
    long countByExample(ActivityTypeExample example);

    int deleteByExample(ActivityTypeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ActivityType record);

    int insertSelective(ActivityType record);

    List<ActivityType> selectByExample(ActivityTypeExample example);

    ActivityType selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ActivityType record, @Param("example") ActivityTypeExample example);

    int updateByExample(@Param("record") ActivityType record, @Param("example") ActivityTypeExample example);

    int updateByPrimaryKeySelective(ActivityType record);

    int updateByPrimaryKey(ActivityType record);

    @Select("select id , type_name text from activity_type")
    List<Map<String, Object>> selectActivityType();
}